<%= form_for :answer, :url => questions_path(:id => @question.id), :method => :post do |form|%>
  <div class="current_question">
    <% (1..3).to_a.each do |index|%>
      <div class="inp">
        <%= form.radio_button :variant, index, :class => "niceRadio" %>
        <%= form.label "variant_#{index}", @question.try("answer_#{index}") %>
      </div>
    <% end -%>
  </div>
  <div class="answer" style="display:none;">
    <%= image_submit_tag "answer.png" %>
  </div>
<% end -%>

<script type="text/javascript">
  $(document).ready(function(){
    $('.inp input, .niceRadio, .inp label').click(function(){
      $('.answer').show();
    });
  });
</script>
